package com.be.beadmin.product.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author Jiahao Liu
 * @CreateTime 2023-04-18
 * @Description
 */
@Entity
@Table(name="T_OP_WorkHoursRequestHst")
@Getter
@Setter
public class WorkHoursRequestHst extends BaseEntity {

    @Column(name = "ApproveManId",columnDefinition = "VARCHAR(50) COMMENT '审批人Id'")
    private String approveManId;

    @Column(name = "RequestManId",columnDefinition = "VARCHAR(50) COMMENT '填报人Id'")
    private String requestManId;

    @Column(name = "RequestType",columnDefinition = "VARCHAR(50) COMMENT '0：工单工时填报，1：项目工时填报'")
    private Integer requestType;

    @Column(name = "ProjectId",columnDefinition = "VARCHAR(50) COMMENT '项目id'")
    private String projectId;

    @Column(name = "ProjectCode",columnDefinition = "VARCHAR(50) COMMENT '项目编码'")
    private String projectCode;

    @Column(name = "ProjectName",columnDefinition = "VARCHAR(50) COMMENT '项目名称'")
    private String projectName;

    @Column(name = "ApproveTime",columnDefinition = "datetime COMMENT '审核时间'")
    private Date approveTime;

    @Column(name = "Wo",columnDefinition = "VARCHAR(50) COMMENT '工单号'")
    private String wo;

    @Column(name = "ManufactStartDate",columnDefinition = "datetime COMMENT '实际开始时间'")
    private Date manufactStartDate;

    @Column(name = "ManufactEndDate",columnDefinition = "datetime COMMENT '实际结束时间'")
    private Date manufactEndDate;

    @Column(name = "TaskId",columnDefinition = "VARCHAR(50) COMMENT '生产工序id'")
    private String taskId;

    @Column(name = "RequestMemo",columnDefinition = "text COMMENT '填报描述'")
    private String requestMemo;

    @Column(name = "ApproveMemo",columnDefinition = "text COMMENT '审核描述'")
    private String approveMemo;

    @Column(name = "RequestId",columnDefinition = "VARCHAR(50) COMMENT '审批申请号'")
    private String requestId;

    @Column(name = "ProductCode",columnDefinition = "VARCHAR(50) COMMENT '产品/柜体编号'")
    private String productCode;

    @Column(name = "ProcessSequence",columnDefinition = "VARCHAR(50) COMMENT '加工顺序号'")
    private String processSequence;

    @Column(name = "ProcessCode",columnDefinition = "VARCHAR(50) COMMENT '加工工序编码'")
    private String processCode;

    @Column(name = "ProcessName",columnDefinition = "VARCHAR(50) COMMENT '加工工序名称'")
    private String processName;

    @Column(name = "Status",columnDefinition = "int COMMENT '审批状态'")
    private Integer status;

    @Column(name = "StandManufactWorkhour",columnDefinition = "float COMMENT '标准工时'")
    private Float standManufactWorkhour;

    @Column(name = "RequestWorkHours",columnDefinition = "float COMMENT '填报工时'")
    private Float requestWorkHours;

    @Column(name = "RequestMan",columnDefinition = "VARCHAR(50) COMMENT '填报人'")
    private String requestMan;

    @Column(name = "Operator",columnDefinition = "VARCHAR(50) COMMENT '操作人员'")
    private String operator;

}
